<template>
	<view class="tongzhiBox">
		<view class="title">
			{{pageData.title}}
		</view>
		<view class="time">
			发布时间：{{pageData.created_at}}
		</view>
		<view class="heng"></view>
		<view class="content">
			{{pageData.content}}
		</view>


	</view>
</template>

<script>
	import {
		getmessagesdetail
	} from "@/api/api.js"
	export default {
		data() {
			return {
				pageId: "",
				pageData: {},
			}
		},
		onLoad(options) {
			this.pageId = options.id
			this.handleGetDetail()
		},
		methods: {
			async handleGetDetail() {
				let res = await getmessagesdetail({
					id: this.pageId
				})
				this.pageData = res.data
			},
		}
	}
</script>

<style scoped lang="scss">
	.tongzhiBox {
		width: 100%;
		height: 100%;
		background-color: #ffffff;
		padding: 30rpx;
		box-sizing: border-box;

		.title {
			font-size: 32rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #212121;
			line-height: 37rpx;
		}

		.time {
			font-size: 24rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #999999;
			line-height: 28rpx;
			margin-top: 20rpx;
		}

		.heng {
			width: 690rpx;
			height: 1rpx;
			background-color: #EEEEEE;
			margin-top: 20rpx;
		}

		.content {
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #999996;
			line-height: 33rpx;
			margin-top: 20rpx;
		}
	}
</style>